package com.allwees.bs.module.oms.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Data
@NoArgsConstructor
@TableName("oms_shipping_log")
public class OmsShippingLog {

    @Id
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Integer id;

    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    @Column(updatable = false, length = 48)
    protected String uuid;

    private String orderItemUuids;

    private String logisticsUuid;

    private String expressCode;

    public OmsShippingLog(String orderItemUuids, String logisticsUuid, String expressCode) {
        this.orderItemUuids = orderItemUuids;
        this.logisticsUuid = logisticsUuid;
        this.expressCode = expressCode;
    }
}
